home *** CD-ROM | disk | FTP | other *** search
- Public Class CalleeForm
- Inherits System.Windows.Forms.Form
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
- If Me.Modal Then
- Me.FormBorderStyle = FormBorderStyle.FixedDialog
- Else
- Me.FormBorderStyle = FormBorderStyle.Sizable
- Me.SizeGripStyle = SizeGripStyle.Show
- End If
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- Private WithEvents Label1 As System.Windows.Forms.Label
- Private WithEvents Label2 As System.Windows.Forms.Label
- Private WithEvents txtUserName As System.Windows.Forms.TextBox
- Private WithEvents txtAliasName As System.Windows.Forms.TextBox
- Private WithEvents OK As System.Windows.Forms.Button
- Friend WithEvents btnCancel As System.Windows.Forms.Button
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.Container
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.Label1 = New System.Windows.Forms.Label()
- Me.Label2 = New System.Windows.Forms.Label()
- Me.OK = New System.Windows.Forms.Button()
- Me.txtUserName = New System.Windows.Forms.TextBox()
- Me.btnCancel = New System.Windows.Forms.Button()
- Me.txtAliasName = New System.Windows.Forms.TextBox()
- Me.SuspendLayout()
- '
- 'Label1
- '
- Me.Label1.Location = New System.Drawing.Point(16, 24)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(232, 16)
- Me.Label1.TabIndex = 0
- Me.Label1.Text = "Enter your name"
- '
- 'Label2
- '
- Me.Label2.Location = New System.Drawing.Point(16, 96)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(232, 16)
- Me.Label2.TabIndex = 2
- Me.Label2.Text = "Enter your alias"
- '
- 'OK
- '
- Me.OK.Location = New System.Drawing.Point(368, 48)
- Me.OK.Name = "OK"
- Me.OK.Size = New System.Drawing.Size(80, 32)
- Me.OK.TabIndex = 4
- Me.OK.Text = "OK"
- '
- 'txtUserName
- '
- Me.txtUserName.Location = New System.Drawing.Point(16, 48)
- Me.txtUserName.Name = "txtUserName"
- Me.txtUserName.Size = New System.Drawing.Size(328, 24)
- Me.txtUserName.TabIndex = 1
- Me.txtUserName.Text = ""
- '
- 'btnCancel
- '
- Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
- Me.btnCancel.Location = New System.Drawing.Point(368, 112)
- Me.btnCancel.Name = "btnCancel"
- Me.btnCancel.Size = New System.Drawing.Size(80, 32)
- Me.btnCancel.TabIndex = 4
- Me.btnCancel.Text = "Cancel"
- '
- 'txtAliasName
- '
- Me.txtAliasName.Location = New System.Drawing.Point(16, 120)
- Me.txtAliasName.Name = "txtAliasName"
- Me.txtAliasName.Size = New System.Drawing.Size(328, 24)
- Me.txtAliasName.TabIndex = 3
- Me.txtAliasName.Text = ""
- '
- 'CalleeForm
- '
- Me.AcceptButton = Me.OK
- Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
- Me.CancelButton = Me.btnCancel
- Me.ClientSize = New System.Drawing.Size(482, 207)
- Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnCancel, Me.OK, Me.txtAliasName, Me.Label2, Me.txtUserName, Me.Label1})
- Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.Name = "CalleeForm"
- Me.Text = "CalleeForm"
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
-
- ' Properties that expose relevant fields to the outside
- Property UserName() As String
- Get
- Return txtUserName.Text
- End Get
- Set(ByVal Value As String)
- txtUserName.Text = Value
- End Set
- End Property
-
- Property AliasName() As String
- Get
- Return txtAliasName.Text
- End Get
- Set(ByVal Value As String)
- txtAliasName.Text = Value
- End Set
- End Property
-
- Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
- Me.DialogResult = DialogResult.OK
- ' we must explicitly close the form only if it isn't modal
- ' (this is just for illustration purposes, because a simpler Me.Close works well anyway)
- If Not Me.Modal Then Me.Close()
- End Sub
-
- Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
- Me.DialogResult = DialogResult.Cancel
- ' we must explicitly close the form only if it isn't modal
- ' (this is just for illustration purposes, because a simpler Me.Close works well anyway)
- If Not Me.Modal Then Me.Close()
- End Sub
- End Class
-